// Raf Lempens & Bjorn Schobben
#include "CheckpointReachedAbilityVisitor.h"
#include <stdio.h>


CheckpointReachedAbilityVisitor::CheckpointReachedAbilityVisitor(): found(false), checkpointreachableInterface(0)
{
}

CheckpointReachedAbilityVisitor::~CheckpointReachedAbilityVisitor()
{
}

void CheckpointReachedAbilityVisitor::Visit(CheckpointReachedAbility& ability)
{
	found = true;
	checkpointreachableInterface = ability.CheckpointReachableInterface();
}

bool CheckpointReachedAbilityVisitor::FoundAbility() const
{
	return found;
}

CheckpointReachable* CheckpointReachedAbilityVisitor::CheckpointReachableInterface() const
{
	return checkpointreachableInterface;
}

void CheckpointReachedAbilityVisitor::Clear()
{
	found = false;
	checkpointreachableInterface = 0;
}

